﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using LuxDiner.Model.Financial;
using LuxDiner.Command.Financial;
namespace LuxDiner.Logic.Financial
{
    public class PaymentLogic
    {
        public static PaymentCollection GetTopPayments(PaymentQuery sea)
        {
            return PaymentCommand.GetTopPayments(sea);
        }

        public static PaymentCollection GetPayments(PaymentQuery sea)
        {
            return PaymentCommand.GetPayments(sea);
        }

        /// <summary>
        /// 取所有余额总和（供应商和顾客)
        /// </summary>
        /// <returns></returns>
        public static decimal[] GetTotalBalance()
        {
            return PaymentCommand.GetTotalBalance();
        }
    }
}
